package com.hhit.brpc.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RpcClientTest {
	@RequestMapping("/echo")
    public String echo() {
//        EchoRequest request = new EchoRequest();
//        request.setMessage("hello");
//        EchoResponse response = echoFacade.echo(request);
//        System.out.println(response.getMessage());
//
//        EchoResponse response2 = echoFacade.echo2(request);
//        System.out.println(response2.getMessage());
//
//        Future<EchoResponse> future = echoFacade.echo3(request);
//        try {
//            future.get();
//        } catch (Exception ex) {
//            // ignore
//        }
//
//        return response2.getMessage();
		return null;
    }
}
